/*
 * $Author: cbeams $
 * $Date: 2007-06-04 19:47:27 +0000 (Mon, 04 Jun 2007) $
 * $Rev: 26 $
 */
package com.db4o.eclipse.plugin.model;

import com.db4o.reflect.ReflectClass;


public class Db4oStoredClass extends TreeParent {
    private final ReflectClass cls;
    private final Db4oDatabase db;

    public Db4oStoredClass(Db4oDatabase db, ReflectClass cls) {
        super(cls.getName());
        this.db = db;
        this.cls = cls;
    }

    public ReflectClass getReflectClass() {
        return cls;
    }

    /**
     * The database that contains this stored class
     *
     * @return  database
     */
    public Db4oDatabase getDb4oDatabase() {
        return db;
    }
}
